package com.kgc.onlineLife.mapper;

import com.kgc.onlineLife.bean.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: com.kgc.onlineLife.mapper
 * @author: HarryXzy
 * @create: 2022-04-18 22:29
 * @description: 订单Mapper
 **/
@Repository
public interface OrderMapper {

    /**
    * @author: HarryXzy
    * @date: 2022/4/18 10:41 下午
    * @return:
    * @description: 根据用户id查询订单
    **/
    public List<Order> selectOrdersByCstid(Integer id);

    int updateOrder(Order order);

    int insertOrder(Order order);

    Integer selectOrderByCode(@Param("code") String code);

    /*
     * @author : wangzhongyu
     * @date   : 2022/4/21
     * @param  :
     * @return :
     * @description :
     */
    List<Order> selectOrder();
    List<Order> selectOrders (@Param("code")String code);

    boolean upOrder(String code);


}
